Skip to content
This repository was archived by the owner on Oct 4, 2019. It is now read-only.

feat(ODC-64): modify GS controller to validate credentials,repository and branch#28

Merged
MatousJobanek merged 1 commit intoredhat-developer:masterfrom
MatousJobanek:cred-validation-operator
Apr 27, 2019
Merged

feat(ODC-64): modify GS controller to validate credentials,repository and branch#28
MatousJobanek merged 1 commit intoredhat-developer:masterfrom
MatousJobanek:cred-validation-operator

Conversation

@MatousJobanek
Copy link
Contributor

when the secret is specified in the GitSource then the controller validates:

  • credentials (user can login to the repo with the credentials and get user info)
  • repository reachability
  • branch presence

If any of the validation fails, then it sets the appropriate reason as well as the error message.
Every git service implementation uses its own API calls. In case none of the well-known services is matched, then it uses the generic git. Generic git gets only the list of remote branches (same as git ls-remote)

taken from redhat-developer/devconsole-operator#138 as part of ODC-613

@MatousJobanek MatousJobanek merged commit b5ac7c1 into redhat-developer:master Apr 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants